﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Doo.Scripts.Fields;

namespace Doo.Controls
{
    /// <summary>
    /// 变量
    /// </summary>
    public class Var : Field
    {
        public override bool NoQuote
        {
            get
            {
                return !this.IsString;
            }
        }

        /// <summary>
        /// 是否是字符串
        /// </summary>
        public bool IsString { get; set; }

        public string Value { get; set; }

        public override void RenderValue(System.IO.TextWriter writer, System.Web.UI.Control parent)
        {
            writer.Write(this.Value);
        }
    }
}
